package com.ehome.poct.core.api.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 血常规板子
 * @author gyl
 * @since 2022/4/8 10:34
 **/
@Data
@Accessors(chain = true)
public class MaterialBloodBoardVO {

    @ApiModelProperty(value = "板子编号")
    private String boardSno;

    @ApiModelProperty(value = "板子批次")
    private String boardBatch;

    @ApiModelProperty(value = "批次Str")
    private String boardBatchStr;

    public String getBoardBatchStr() {
        return boardBatch.substring(0,4)+"年"+boardBatch.substring(4,6)+"月第"+boardBatch.substring(6)+"批";
    }

    @ApiModelProperty(value = "板子自身的厚度 默认400")
    private BigDecimal boardThickness;

    @ApiModelProperty(value = "折射率")
    private Double refractiveRate;

    @ApiModelProperty(value = "第一个空槽厚度")
    private BigDecimal boardThicknessA;

    @ApiModelProperty(value = "第二个空槽的厚度")
    private BigDecimal boardThicknessB;

    @ApiModelProperty(value = "第三个空槽的厚度")
    private BigDecimal boardThicknessC;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "板子的状态 1:出厂; 2:已质检; 3:已使用; 4:废弃")
    private Integer boardStatus;

    @ApiModelProperty(value = "标定状态 0未标定|1已标定")
    private Integer calibrationStatus;

    @ApiModelProperty(value = "标定状态名称")
    private String calibrationStatusStr;

    @ApiModelProperty(value = "标定时间")
    private LocalDateTime calibrationDate;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "是否异常")
    private Integer abnormal;

    @ApiModelProperty(value = "rbc")
    private Double rbc;
    @ApiModelProperty(value = "plt")
    private Double plt;
    @ApiModelProperty(value = "wbc")
    private Double wbc;
    @ApiModelProperty(value = "hgb")
    private Double hgb;
}
